package com.ln.adoms.dao;

import com.ln.adoms.entity.DepartSetting;
import com.ln.adoms.entity.Goods;
import com.ln.adoms.entity.neum.Status;
import com.ln.core.orm.Filtration;
import com.ln.core.orm.Filtration.MatchType;
import com.ln.core.orm.hibernate.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class DepartSettingDao extends BaseDao<DepartSetting> {


    /**
     * 获取部门自动收货时间配置
     *
     * @param departmentId
     * @return
     */
    public DepartSetting getAutoReceiveOrderSetting(Integer departmentId) {
        return this.find("from DepartSetting where department.id=? and type = ?", departmentId, DepartSetting.SETTING_TYPE.ORDER_AUTO_RECEIVE);
    }
}
